package com.gemo.demo.service.impl;

import com.gemo.demo.entiy.Type;
import com.gemo.demo.mapper.TypeMapper;
import com.gemo.demo.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements ITypeService {
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> getTypes() {
        return typeMapper.selectAll();
    }
}
